package com.heima.feign.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-wemedia")
public interface IWemediaClient {

    @PostMapping("/api/v1/wemedia/findWmUser")
    WmUser findWmUser(String name);

    @PostMapping("/api/v1/wemedia/createWmUser")
    void createWmUser(WmUser newWmUser);

    @PostMapping("/api/v1/wemedia/autoscanComment")
    ResponseResult autoscanComment(@RequestBody String comment);
}
